$(document).ready(function(){
    $("#1").hide();
    $("#2").hide();
    
    
    changeDoctor();
    $("#iframe", parent.document.body).attr("src", "http://www.a.com/guahao/select");
    function changeDoctor(){
        $("#changeOffice").change(function(){
            $("#changeOffice option").each(function(i){
                if ($(this).attr("selected")) {
                    $(".doctor").hide();
                    $(".doctor").eq(i - 1).show();
                    var changeofficeValue = $("#changeOffice option:selected").val();
                    
                    
                    var office = changeofficeValue;
                    var url = "http://www.a.com/guahao/select?office=" + office;
                    $("#iframe", parent.document.body).attr("src", url);
                    
                    
                }
            });
            
            
            
        });
        
        
    }
    
    
    
    
    
    
});
